Currency Util
Miscellaneous currency functions (mostly conversion).
Properties
Compare two currency types so that they can be sorted by case-sensitive name
Comparator similar to CURRENCY_TYPENAME_COMPARATOR but case-insensitive
Compare two currency types so that they can be sorted by type and then by case-sensitive name
Functions
Return a list of currencies matching the given search filter
Convert the given price (in terms of the given currency) to a price in terms of the base currency.
Return the amount of toCurrency that the given value of fromCurrency is currently worth.
Return the amount of 'toCurrency' obtained by exchanging 'value' of 'fromCurrency' at the rate 'rate'
Return the amount of toCurrency that the given value of fromCurrency was worth on the given date.
Get the raw (adjusted for decimal place differences) rate between the two currencies.
Convert the given user-identifiable rate to the 'raw' rate used to exchange amounts between the given two currencies.
Get the raw (adjusted for decimal place differences) rate between the two currencies. The rate that is used is the one effective on the given date.
Get the balance / security holding (quantity) for the given security (currency). Optionally specify the asof date (default = today/balance). This will iterate all security accounts for the given security and total the security holdings...
Get the price (going rate) for currency curr1 in terms of curr2 on the given date. This adjusts the price to be in terms of splits in either currency so that the price is in terms of today's units of each currency (but the price is from the given date, not today's prices).
Get the current user-identifiable rate from fromCurrency to toCurrency.
Convert the given raw rate to the user-identifiable rate used to exchange amounts between the given two currencies.
Get the raw (adjusted for decimal place differences) rate between the two currencies. The rate that is used is the one effective on the given date.